package br.ufrn.sigtcc.model.entidades;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;


@Entity
@Table(name="ADMINISTRADOR")

public class Admin extends Pessoa implements Serializable {

	
	@Column(length = 50, nullable=false)
	private String formacao;
	
	@OneToMany
	@JoinColumn(name="not_fk")
	private List<Noticia> noticias;

	
	@Transient
	private static final long serialVersionUID = 1L;

	public Admin() {
		super();
	}   
	
	public String getFormacao() {
		return this.formacao;
	}

	public void setFormacao(String formacao) {
		this.formacao = formacao;
	}

	public List<Noticia> getNoticias() {
		return noticias;
	}

	public void setNoticias(List<Noticia> noticias) {
		this.noticias = noticias;
	}	
	
	
   
}
